<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			.d1,.d2,.d3{
				width: 100px;
				height: 200px;
			/*浮动*/
				float: right;
				margin-right: 40px;
			}
			.d1{
				background-color: yellow;
			}
			.d2{
				background-color: green;
			}
			.d3{
				background-color: aqua;
			}
		</style>
	</head>
	<body>
		<div class="d1">
			1
		</div>
		<div class="d2">
			2
		</div>
		<div class="d3">
			3
		</div>
	</body>
</html>
